
<include file="public@header" />
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li><a href="{:url('/company/admin_member_baby/index',array('id'=>$Request.param.user_id) )}">我的宝宝</a></li>
		<li class="active"><a>宝宝添加</a></li>
	</ul>
	<form method="post" class="form-horizontal margin-top-20  js-ajax-form" action="{:url('/company/admin_member_baby/addPost')}">
		<div class="form-group">
			<label for="name" class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
			<div class="col-md-2 col-sm-10">
				<input type="text" class="form-control" id="name" name="post[name]">
			</div>

			<label for="birthday" class="col-sm-2 control-label"><span class="form-required">*</span>出生日期</label>
			<div class="col-md-2 col-sm-10">
				<input type="text" class="form-control js-bootstrap-date" id="birthday" name="post[birthday]">
			</div>


		</div>
		<div class="form-group">

			<label for="sex" class="col-sm-2 control-label"><span class="form-required">*</span>性别</label>
			<div class="col-md-2 col-sm-10">
				<select class="form-control" id="sex" name="post[sex]" >


					<option value="">请选择性别</option>
					<php>

						$personSex = config('person_sex');
						if (!empty($personSex)) {

						foreach ($personSex as $key=>$value) {
						echo "<option value='$key'>$value</option>";
						}

						}

					</php>
				</select>
			</div>

			<label for="which_baby" class="col-sm-2 control-label"><span class="form-required">*</span>第几胎</label>
			<div class="col-md-2 col-sm-10">
				<select class="form-control" id="which_baby" name="post[which_baby]" >


					<option value="1">1</option>
					<php>

					 for ($i=2;$i<=5;$i++){
						echo "<option value='$i'>$i</option>";
					 }

					</php>
				</select>

			</div>

		</div>

		<div class="form-group">
			<label for="description" class="col-sm-2 control-label">简介</label>
			<div class="col-md-6 col-sm-10">
					<textarea class="form-control" name="post[description]" id="description" style="height: 50px;"
							  placeholder="请填写简介"></textarea>
			</div>
		</div>


		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<input type="hidden" name="post[user_id]" value="{$Request.param.user_id}" >
				<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>